package lotto;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.uncommons.maths.combinatorics.CombinationGenerator;

//http://maths.uncommons.org/api/org/uncommons/maths/combinatorics/CombinationGenerator.html

//http://commons.apache.org/proper/commons-math/userguide/stat.html

public class FilterTest {

	public static void main(String[] args) throws IOException {



		MyFilter myFilter = new MyFilter();

//		Integer[] elements = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
//				20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
//				41, 42, 43, 44, 45, 46, 47, 48, 49 };
		

		

		
		List<Integer> elementsList =new ArrayList<Integer>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
				20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40,
				41, 42, 43, 44, 45, 46, 47, 48, 49));

		
		
//		31	39	36	9	3	17
//		9	39	8	3	34	35







		

		
		
		elementsList.removeAll(Arrays.asList(13,42,28,19,17,25));
		Integer[] elements = elementsList.toArray(new Integer[elementsList.size()]);;
		

		CombinationGenerator<Integer> generator = new CombinationGenerator<Integer>(elements, 6);
		System.out.println("Total Number of Combinations: "+generator.getTotalCombinations());

	


		//List<Integer> myJackPotToTest = new ArrayList<Integer>(Arrays.asList(13,42,28,19,17,25));

//		System.out.println(myFilter.getAverage(myJackPotToTest));
//		System.out.println(myFilter.getStdDev(myJackPotToTest));

		myFilter.filterMinMaxWithParams(generator, 20.5,27.5, 10.5,17.5 );
//		System.out.println("Maximale Anzahl der richtigen Zahlen:"+myFilter.howManyMatch(myJackPotToTest));


		myFilter.getZahlenFolgeMitMeistenUberschneid();





	
		

	}

}
